﻿@model User
<div class="site-block form">
    <div class="header">
        @ViewBag.ActiveUrl.Title
    </div>
    @using (Html.Kaio().BeginForm(new jQueryAjaxOptions { Loading = true, Type = AjaxRequestDataType.Script }, new { @id = "_f" }))
    {

        @Html.AntiForgeryToken()
        <table>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "FULLNAME")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.FullName, new { @class = "input " })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "SEX")
                </td>
                <td>
                    @Html.DropDownList("sex", (List<SelectItem>)ViewBag.Sexs, "--", new { @class = "select {validate:{required:1}}" })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "BIRTHDAY")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.Birthday, new { @class = "input datepicker {datetimeFormat:'O/D/Y',minDatetime:new Date(1920, 1 - 1, 26, 11, 30, 0),maxDatetime:new Date() ,validate:{date:1,required:1}}", @style = "width:140px" })
                    <span class="date-format">MM/dd/YYYY</span>
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "ADDRESS")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.Address, new { @class = "input" })
                </td>
            </tr>
            <tr>
                <td class="caption" colspan="2">
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "OTHER_INFO")
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "BIO")
                </td>
                <td>
                    @Html.TextAreaFor(x => Model.Bio, new { @class = "input" })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "Hobby")
                </td>
                <td>
                    @Html.TextAreaFor(x => Model.Hobby, new { @class = "input" })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "Website")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.Website, new { @class = "input {validate:{url:1}}" })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "Blog")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.Blog, new { @class = "input " })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "YM")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.YahooId, new { @class = "input " })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "SK")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.SkypeId, new { @class = "input " })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "MSN")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.MSN, new { @class = "input " })
                </td>
            </tr>
            <tr>
                <td>
                    @ForumContext.GetMvcText(LanguageSection.USER_INFO, "AOL")
                </td>
                <td>
                    @Html.TextBoxFor(x => Model.AOL, new { @class = "input " })
                </td>
            </tr>
            <tr>
                <td class="right" colspan="2">
                    @Html.Link("javascript://", ForumContext.GetText(LanguageSection.GLOBAL, "Update"), new { @class = "ui-button", @onclick = "$('#_f').submit()" })
                </td>
            </tr>
        </table>
    }
</div>
